package com.jy.api.dao;

import com.jy.api.domain.ProductTransaction;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.repository.CrudRepository;

public interface ProductTransactionDao extends CrudRepository<ProductTransaction, Integer> {

    Page<ProductTransaction> findByProductId(String productId,Pageable pageable);

    Page<ProductTransaction> findByStoreId(String productId,Pageable pageable);
}
